<template>
  <div>
    <eagle-page-list
      ref="eaglePageList"
      @bindData="bindData"
      :queryParams="queryParams"
      :controller="controller"
      :conditions="conditions"
      :pageSize="20"
    >
      <div slot="list">
        <van-cell
          class="card"
          v-for="(item, index) in list"
          :key="index"
        >
          <div @click="detail(item)">
            <van-row
              gutter="15"
              style="word-break:break-all"
            >
              <van-col>
                <b style="font-size: 13px">{{ item.AccidentName }}</b>
              </van-col>
            </van-row>

            <van-row gutter="15">
              <van-col>
                <img
                  class="icon"
                  src="@/assets/Images/AppIcon/icon_list_type.png"
                />事故编号：{{ item.AccidentNumber }}
              </van-col>
            </van-row>
            <!-- <van-row gutter="15">
                            <van-col>
                                <img class="icon" src="@/assets/Images/AppIcon/icon_list_type.png" />事故名称:{{ item.AccidentName }}
                            </van-col>
                        </van-row> -->
            <van-row gutter="20">
              <van-col>
                <img
                  class="icon"
                  src="@/assets/Images/AppIcon/icon_list_date.png"
                />事故发生日期：{{ item.AccidentDate | formatDateTime }}
              </van-col>
            </van-row>
            <van-row gutter="20">
              <van-col>
                <img
                  class="icon"
                  src="@/assets/Images/AppIcon/icon_list_type.png"
                />工艺分类：{{ item.ProcessClassification }}
              </van-col>
            </van-row>
            <van-row gutter="20">
              <van-col>
                <img
                  class="icon"
                  src="@/assets/Images/AppIcon/icon_list_type.png"
                />事故分级：{{ item.AttidentgRading }}
              </van-col>
            </van-row>
            <van-row gutter="20">
              <van-col>
                <img
                  class="icon"
                  src="@/assets/Images/AppIcon/icon_list_type.png"
                />潜在风险：{{ item.PotentialRisk }}
              </van-col>
            </van-row>
            <van-row gutter="20">
              <van-col>
                <img
                  class="icon"
                  src="@/assets/Images/AppIcon/icon_list_user.png"
                />创建人：{{ item.CreateChnName }}
              </van-col>
            </van-row>
            <van-row gutter="20">
              <van-col>
                <img
                  class="icon"
                  src="@/assets/Images/AppIcon/icon_list_date.png"
                />创建日期：{{ item.CreateDate | formatDateTime }}
              </van-col>
            </van-row>
            <van-divider />
          </div>
        </van-cell>
      </div>

    </eagle-page-list>
  </div>
</template>
<script>
import UserChooseDialog from "@/views/components/user/userChooseDialog.vue";
import { GetPageData2 } from "@/api/WhInvestigationReport";
import investigateList from "@/views/wh/AccidentInvestigate/List.vue";
export default {
  components: { investigateList, UserChooseDialog },
  data() {
    return {
      value: "",
      list: [],
      conditions: {},
      controller: "/WhInvestigationReport",
      queryParams: {
        dataType: "SurveyView",
        keywords: "",
      },
      isEdit: false,
      AccidentNumber: "",
      userChooseDialogShow1: false,
      tabName: "tab1",
    };
  },
  created() {},
  methods: {
    bindData(data) {
      this.list = [];
      if (data) {
        this.list = data;
      }
    },
    detail(item) {
      this.$router.push({
        path: "/AccidentInvestigate/View",
        query: { id: item.ID },
      });
    },
    GetStatus(val) {
      if (val == 0) {
        return "未提交";
      } else if (val == 5) {
        return "审批中";
      } else {
        return "已审批";
      }
    },
  },
};
</script>
<style lang="less" scoped>
.register-form {
}
.phone {
  position: relative;
  .code {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 12px;
  }
}
.register-info {
  background-color: #e8f1f8;
  padding-bottom: 20px;
}
.img-box {
  height: 50px;
  width: 50px;
  padding: 10px;
  position: absolute;
  left: 50%;
  top: 60px;
  background-color: #fff;
  border-radius: 50%;
  overflow: hidden;
}
.popup-title {
  line-height: 35px;
  padding: 10px;
  font-size: 15px;
  padding-left: 20px;
}

.op_btn {
  display: flex;
  justify-content: flex-end;
  .btn_item {
    display: flex;
    align-items: center;
    img {
      height: 15px;
      width: 15px;
      margin-right: 5px;
    }
  }
}
</style>